<template>
    <div>
        <h3>路由传值</h3>
        <div class="linkBox">
            <ul>
                <li><router-link to="/">/</router-link></li>
                <li><router-link to="/hello/you">/hello/you</router-link></li>
                <li><router-link to="/static">/static</router-link></li>
                <li><router-link to="/dynamic/1">/dynamic/1</router-link></li>
                <li><router-link to="/attrs" :style="{color:'#f00'}">/attrs</router-link></li>
            </ul>
        </div>
        <div class="routeBox">
            <router-view foo="3333"></router-view>
        </div>
    </div>
</template>
<script>
export default {
    data(){
        return {
            show:true
        }
    }
}
</script>
<style scoped>
.linkBox{
    width: 100%;
    height: 100px;
    display: block;
}
.routeBox{
    width: 100%;
    display: block;
}
</style>

